package org.dev.vlp.service;

import org.dev.vlp.entity.Word;
import com.baomidou.mybatisplus.extension.service.IService;
import org.dev.vlp.utils.PageResult;
import org.dev.vlp.vo.EstimationWordVo;
import org.dev.vlp.vo.VocabularyEstimationVo;
import org.dev.vlp.vo.VocabularyVo;

import java.util.List;

/**
* @author 86184
* @description 针对表【vlp_vi_word】的数据库操作Service
* @createDate 2023-01-15 21:33:27
*/
public interface WordService extends IService<Word> {
    // 获取单词详情
    Word getWordDetail(long id,Long userId);

    VocabularyEstimationVo listEstimationWords(int userId);

    List<EstimationWordVo> getGameWords(int lan);

    VocabularyVo calculate(Long userId, List<Integer> levelRightCounts);

    PageResult search(int currentPage, int pageSize, int type, Long uid, String keyWord, Long bookId);

    PageResult getBookWordPage(Long bookId, int currentPage, int pageSize,Long uid);
}
